package distriKub;

public class Tile {
	
	// Getters and setters BEGIN 
	public int getTileOwnerId() {
		return tileOwnerId;
	}
	public void setTileOwnerId(int tileOwnerId) {
		this.tileOwnerId = tileOwnerId;
	}
	public int getTilePosition() {
		return tilePosition;
	}
	public void setTilePosition(int tilePosition) {
		this.tilePosition = tilePosition;
	}
	public tileColors getTileColor() {
		return tileColor;
	}
	public int getTileNumber() {
		return tileNumber;
	}
	public String getOwnerScreenName() {
		return ownerScreenName;
	}
	public void setOwnerScreenName(String ownerScreenName) {
		this.ownerScreenName = ownerScreenName;
	}
	public void setTileColor(tileColors tileColor) {
		this.tileColor = tileColor;
	}
	public void setTileNumber(int tileNumber) {
		this.tileNumber = tileNumber;
	}
	public Tile (tileColors createColor,int createNumber){ // Constructor
		this.tileColor = createColor;
		this.tileNumber = createNumber;
		
	}
	public Tile (){ // Default Constructor
		this.tileColor = Tile.tileColors.Joker;
		this.tileNumber = -100; // Invalid value !
	}
	public boolean isSuggested(){
		return suggested;
	}
	public void suggest(){
		this.suggested = true;
	}
	public void unSuggest(){
		this.suggested = false;
	}
	
	// Getters and setters END
	
	// Unique Id
	private int tileOwnerId = BANKID;
	public static enum tileColors {Black, Yellow, Blue, Red, Joker}
	public static final int JOKERNUMBER = 0;
	public static final int BANKID = 1000000000;
	public static final String BANKSCREENNAME = new String("Bank"); // Default
	private String ownerScreenName = BANKSCREENNAME;
	private tileColors tileColor;
	private int tileNumber; // Numbers are 1..13
	private int tilePosition = -1; // Tile position the private rack
	private boolean suggested = false;

}
